<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <title>阿福易购-申请售后</title>
    <link rel="stylesheet" href="/css/app.css">
</head>
<body ontouchstart="">
<header class="ui-header ui-header-stable  af-header">
    <ul class="ui-row-flex">
        <li class="ui-col ui-flex ui-flex-pack-start">
            <i ontouchstart="window.history.back();" class="ui-icon-return"></i>
        </li>
        <li class="ui-col ui-flex ui-flex-pack-center">
            <h1>申请售后</h1>
        </li>
        <li class="ui-col ui-flex ui-flex-pack-end">
        </li>
    </ul>
</header>
<footer class="ui-footer ui-goods-footer">
    <div class="ui-row-flex">
        <div class="ui-col">
            <button id="submitBtn" class="ui-btn ui-btn-default">提交售后申请</button>
        </div>
    </div>
</footer>


<div class="ui-container">
    <form id="form" action="" name="form" class="ui-after-sales-form">
        <input type="hidden" name="goods_id" value="1321231316545646">
        <input type="hidden" name="order_id" value="Gd464515165456445">
    <div class="ui-my-order-comment">
        <ul class="ui-list ui-list-function ui-border-tb">
            <li>
                <div data-href="./goods-info.html" class="ui-list-img">
                    <span style="background-image:url(http://afyg.img-cn-qingdao.aliyuncs.com/abab784715ecbc2e20b280efc9a7fbf0.jpg@!254-254)"></span>
                </div>
                <div data-href="./goods-info.html" class="ui-list-info" style="padding-right: 0;">
                    <h4 class="ui-nowrap">发希 fascy 遮瑕BB霜</h4>
                    <p class="ui-nowrap">¥90 数量：3</p>
                </div>
            </li>
        </ul>
    </div>

    <section class="ui-panel ui-panel-pure ui-border-t">
        <h2>服务类型</h2>
        <ul class="ui-list ui-list-pure ui-border-tb">
            <li class="ui-border-t">
                <label class="J-changeType ui-btn ui-btn-default" style="margin-right: 10px">申请换货<input type="radio" class="af-hide" name="serviceType" value="1" checked></label>
                <label class="J-changeType ui-btn ui-btn-border">申请退货<input type="radio" class="af-hide" name="serviceType" value="2"></label>
            </li>
        </ul>
    </section>

    <section class="ui-panel ui-panel-pure ui-border-t">
        <h2>提交数量</h2>
        <ul class="ui-list ui-list-pure ui-border-tb">
            <li class="ui-border-t">
                <div class="ui-num-plugin af-border-tb" style="margin-left: 0">
                    <button class="af-border-l af-border-r ui-num-btn ui-num-min" type="button">-</button>
                    <input class="ui-num-input" type="text" value="1" min="1" max="3" readonly>
                    <button class="af-border-l af-border-r ui-num-btn ui-num-add" type="button">+</button>
                </div>
                <small class="ui-txt-info">您最多可以提交的数量为3</small>
            </li>
        </ul>
    </section>

    <section class="ui-panel ui-panel-pure ui-border-t">
        <h2>原因</h2>
        <div class="ui-form ui-border-t">
            <div class="ui-form-item ui-form-item-textarea ui-form-item-pure ui-border-b">
                <textarea placeholder="请填写退换货原因~" required></textarea>
            </div>
        </div>
    </section>

    <section class="ui-panel ui-panel-pure ui-border-t">
        <div class="ui-form ui-border-t">
            <div class="ui-form-item ui-form-item-show ui-border-b">
                <label for="#">联系人</label>
                <input type="text" value="" data-reg-msg="请填写联系人" required>
            </div>
        </div>
    </section>
    <section class="ui-panel ui-panel-pure ui-border-t">
        <div class="ui-form ui-border-t">
            <div class="ui-form-item ui-form-item-show ui-border-b">
                <label for="#">联系电话</label>
                <input type="text" value="" data-reg-msg="请填写联系电话" data-reg="(^0\d{2,3}-\d{7,8}$)|(^\d{7,8}$)|(^\d{3,4}-\d{7,8}-\d{1,4}$)|(^\d{7,8}-\d{1,4}$)|(^\d{3,4}-?\d{3,4}-?\d{2,4}$)" required>
            </div>
        </div>
    </section>
    </form>

</div>
<script src="/lib/zepto.min.js"></script>
<script src="/js/frozen.js"></script>
<script src="/js/app.min.js"></script>
<script>
    $(function () {
        $('.J-changeType').on('click',function () {
            $(this).addClass('ui-btn-default').removeClass('ui-btn-border');
            $(this).siblings().removeClass('ui-btn-default').addClass('ui-btn-border');
        });
        var form=$('#form');
        $('#submitBtn').on('click',function () {
            var isOk=RegForm(form);

            isOk&&form.submit();
        });
    })
</script>
</body>
</html>